package router

import (
	"fx_swift_boss/internal/controller"
	"fx_swift_boss/pkg/middleware"
)

func UserRouter() {
	userApiVer := miniApiVer.Group("user", middleware.CheckAuth())
	{
		userApiVer.GET("signOut", controller.SignOut)
		userApiVer.GET("ifCollectTrends", controller.IfCollectTrends)
		userApiVer.GET("ifPayerTrends", controller.IfPayerTrends)
		userApiVer.GET("bossAccount", controller.BossAccount)
		userApiVer.POST("updatePassword", controller.UpdatePassword)
		userApiVer.GET("ifTotalCommission", controller.IfTotalCommission)
		userApiVer.GET("ifAgentTotalCommission", controller.IfAgentTotalCommission)
		userApiVer.GET("ifCompanyAccount", controller.IfCompanyAccount)
		userApiVer.GET("ifCollectionTotalAmount", controller.IfCollectionTotalAmount)
		userApiVer.GET("ifPayTotalAmount", controller.IfPayTotalAmount)
	}
}
